module.exports = {
    updateProducts(state, newProducts){
        console.log('state=', state)
        console.log('newProducts=', newProducts)
        state.products = newProducts
    },
    updateProductSearchKey(state, newProductSearchKey){
        console.log('state=', state)
        console.log('newProductSearchKey=', newProductSearchKey)
        state.productSearchKey = newProductSearchKey
    },

    updateNextPageProducts(state, products){
        console.log('state=', state)
        console.log('products=', products)
        state.products = state.products.concat(products)
    },
    updateNextPageRentList(state, rentList){
        console.log('state=', state)
        console.log('rentList=', rentList)
        state.rentList = state.rentList.concat(rentList)
    },
    updateCurrentProduct(state, newCurrentProduct){
        console.log('state=', state)
        console.log('newCurrentProduct=', newCurrentProduct)
        state.currentProduct = newCurrentProduct
    },
    updateCurrentProduct(state, newCurrentProduct){
        console.log('state=', state)
        console.log('newCurrentProduct=', newCurrentProduct)
        state.currentProduct = newCurrentProduct
    },
    updateRentList(state, newRentList){
        console.log('state=', state)
        console.log('newRentList=', newRentList)
        state.rentList = newRentList
    },
    updateRentSearchKey(state, newRentSearchKey){
        console.log('state=', state)
        console.log('newRentSearchKey=', newRentSearchKey)
        state.rentSearchKey = newRentSearchKey
    },
    updateShopSearchKey(state, newUpdateShopSearchKey){
        console.log('state=', state)
        console.log('newUpdateShopSearchKey=', newUpdateShopSearchKey)
        state.updateShopSearchKey = newUpdateShopSearchKey
    },
    updateShopList(state, newShopList){
        console.log('state=', state)
        console.log('newShopList=', newShopList)
        state.shopList = newShopList
    },
    updateUserInfo(state, newUserInfo){
        console.log('state=', state)
        console.log('newUserInfo=', newUserInfo)
        state.userinfo = newUserInfo
    },
}